package com.xnf.ssmweb.service.impl;

import com.xnf.ssmweb.dao.SysLogMapper;
import com.xnf.ssmweb.domain.SysLog;
import com.xnf.ssmweb.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chendx on 2021/4/8.
 */
@Service
public class SysLogServiceImpl implements SysLogService{

    @Autowired
    private SysLogMapper sysLogMapper;

    public void saveSysLog(SysLog sysLog) {
        sysLogMapper.save(sysLog);
    }

    public List<SysLog> findSysLogs() {
        return sysLogMapper.findAll();
    }
}
